<?php

namespace paper\constraint;

use paper\http\Request;
use paper\http\response\Response;

interface Middleware
{
    function onBoot(Request $request,\Closure $next):Response;
}